
<%@ page import="com.dongwq.Module" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'module.label', default: 'Module')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
        
       
        <r:kindeditorResource/>
        
        <jq:jquery>
        //	alert("ok");
        	
        </jq:jquery>
        
        <script type="text/javascript">

    	
			KE.show({
				id : 'content1',
				afterCreate : function(id) {
					KE.event.ctrl(document, 13, function() {
						KE.util.setData(id);
						document.forms['example'].submit();
					});
					KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
						KE.util.setData(id);
						document.forms['example'].submit();
					});
				}
			});
		</script>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="id" title="${message(code: 'module.id.label', default: 'Id')}" />
                        
                            <g:sortableColumn property="name" title="${message(code: 'module.name.label', default: 'Name')}" />
                        
                            <g:sortableColumn property="uri" title="${message(code: 'module.uri.label', default: 'Uri')}" />
                        
                            <g:sortableColumn property="remark" title="${message(code: 'module.remark.label', default: 'Remark')}" />
                        
                            <th><g:message code="module.user.label" default="User" /></th>
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${moduleInstanceList}" status="i" var="moduleInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${moduleInstance.id}">${fieldValue(bean: moduleInstance, field: "id")}</g:link></td>
                        
                            <td>${fieldValue(bean: moduleInstance, field: "name")}</td>
                        
                            <td>${fieldValue(bean: moduleInstance, field: "uri")}</td>
                        
                            <td>${fieldValue(bean: moduleInstance, field: "remark")}</td>
                        
                            <td>${fieldValue(bean: moduleInstance, field: "user")}</td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${moduleInstanceTotal}" />
            </div>
            <hr/>
             <div style="width:400px; border:1px solid #fac;float:left">
	        	<a class="button">button 1</a>
	        	<a  class="button">button 2</a>
	        	<g:link url="${grailsApplication.config.grails.serverURL}/a/path/to/go">a path to go</g:link>
	        	<hr/>
	        	${content1}
				<form name="example" method="post" action="list">
					<textarea id="content1" name="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;">${content1}</textarea>
					<br />
					<input type="submit" name="button" value="提交内容" /> (提交快捷键: Ctrl + Enter)
				</form>
	        </div>
        </div>
       
    </body>
    
</html>
